//
//  HQMapStatusLimitsModel.m
//  o_amap
//
//  Created by Q神 on 2021/4/19.
//

#import "HQMapStatusLimitsModel.h"

@implementation HQMapStatusLimitsModel

- (void)setMapStatusLimits:(MAMapView *)mapView {
    MACoordinateRegion boundary =  MACoordinateRegionMake(CLLocationCoordinate2DMake(40, 116), MACoordinateSpanMake(2, 2));
    MAMapRect mapRect = MAMapRectForCoordinateRegion(boundary);
    
    [mapView setLimitMapRect:mapRect];
    /// 注意，不要viewWillAppear里设置
    [mapView setLimitRegion:boundary];
}

@end
